import React from "react";
import { DiamondO, HomeO, ShieldO, UserO } from "@react-vant/icons";
import { RouterType } from "../types";
import Login from '../pages/Login'
import Sigin from '../pages/Sigin'
import Home from '../pages/Home'
import City from '../pages/City'
import SearchC from '../pages/Search'
import Qb from '../pages/Qb'
import Kswz from '../pages/Kswz'
import Zjwz from '../pages/Zjwz'
import Qgh from '../pages/Qgh'




import MicroMedicine from '../pages/Home/MicroMedicine'
import Health from '../pages/Home/Health'
import Member from '../pages/Home/Member'
import My from '../pages/Home/My'

const RouterList:RouterType[]=[{
    path:'/', 
    element:<Login/>,
 
},{
    path:'/login',
    element:<Login/>,
    meate:{
        title:"登录"
    }
},{
    path:'/sigin',
    element:<Sigin/>,
    meate:{
        title:"注册"
    }
},{
    path:'/home',
    element:<Home/>,
    meate:{
        title:"主页"
    },
    children:[{
        path:'/home/micromedicine',
        element:<MicroMedicine/>,
        meate:{
            title:"微医",
            icon:<HomeO />
        }
    },{
        path:'/home/health',
        element:<Health/>,
        meate:{
            title:"健康",
            icon:<ShieldO />
        }
    },{
        path:'/home/member',
        element:<Member/>,
        meate:{
            title:"会员",
            icon:<DiamondO />
        }
    },{
        path:'/home/my',
        element:<My/>,
        meate:{
            title:"我",
            icon:<UserO />
        }
    }]
},{
    path:'/city',
    element:<City/>,
    meate:{
        title:"城市"
    }
},{
    path:'/search',
    element:<SearchC/>,
    meate:{
        title:"搜索"
    }
},{
    path:'/qb',
    element:<Qb/>,
    meate:{
        title:"钱币"
    }
},{
    path:'/kswz',
    element:<Kswz/>,
    meate:{
        title:"快速问诊"
    }
},{
    path:'/zjwz',
    element:<Zjwz/>,
    meate:{
        title:"专家问诊"
    }
},{
    path:'/qgh',
    element:<Qgh/>,
    meate:{
        title:"去挂号"
    }
}]
export default RouterList